﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dynamic_UI_Framework
{
    public static class DialogHelper
    {
        public static string DialogName(string defaultName)
        {
            NameDialog d = new NameDialog();
            d.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            d.txtName.Text = defaultName;
            bool? ret  = d.ShowDialog();
            if (ret == true)
            {
                return d.ItemName;
            }
            return string.Empty;
        }
    }
}
